﻿@model int
@{
    EasyCourse.Model.CommonPageInfo pageInfo = ViewData[CommonViewDataKey.CommonPageInfo] as EasyCourse.Model.CommonPageInfo;
    string CourseId = string.Empty;
    if (pageInfo != null && !string.IsNullOrEmpty(pageInfo.CourseId))
    {
        CourseId = pageInfo.CourseId;
    }
    int typeCode = Model;
    
    var newestList = ResourceInfoManage.Instance.GetNewestList(CourseId,typeCode,5);
    var resourceTypeDic=ResourceInfoManage.Instance.ResourceTypeDic;
    var courseInfoList = CourseInfoManage.Instance.GetAll();
   
}
<div class="rBox mb10">
    <div class="rBox-th">
        <h3 class="fl">@resourceTypeDic[typeCode]</h3>
        <a href="@Url.Action("ResourceDownloadList","ResourceInfo")?TypeCode=@typeCode" target="_blank" class="fr orange">更多&gt;&gt;</a>
    </div>
    <div class="rBox-tb">
        <ul class="ulTxtList">
            @foreach (var item in newestList)
            {
                <li><a target="_blank" href="@Url.Action("ResourceDownloadList","ResourceInfo")?CourseId=@item.CourseId&TypeCode=@item.TypeCode"><span class="sTime">@item.CreateTime.ToTimeString()</span>[@(CourseInfoManage.Instance.GetCourseNameById(courseInfoList, item.CourseId))] @item.Title</a></li>
            }
        </ul>
    </div>
</div>

